package com.atguigu.lease.common.exception;

import com.atguigu.lease.common.result.ResultCodeEnum;
import lombok.Data;

/**
 * Package: com.atguigu.lease.common.exception
 * Description:
 *
 * @Author 比奇堡-派大星
 */
@Data
public class LeaseException extends RuntimeException{

    //接收异常的枚举类型
    private ResultCodeEnum resultCodeEnum;

    public LeaseException(ResultCodeEnum codeEnum){
        this.resultCodeEnum = codeEnum;
    }
}